import Mock from 'mockjs';
// import mockAjax from './mockAjax';

import banner from './banner.json';
import floor from './floor.json';

//第一个参数是路径，第二个参数是请求方式，第三个参数是数据
Mock.mock('/mock/banner', 'get', { code: 200, status: '请求成功', data: banner });
Mock.mock('/mock/floor', 'get', { code: 200, status: '请求成功', data: floor });

// mockAjax.get('/banner').then(result => {
//     return console.log('mockAjax', result);
// });
